﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using DigitalPlatform.Common.Event;
using Prism.Events;
using Unity;

namespace DigitalPlatform.Views
{
    /// <summary>
    /// LoginView.xaml 的交互逻辑
    /// </summary>
    public partial class LoginView : Window
    {
        public IEventAggregator _ieventAggregator { get; set; }
        public LoginView(IEventAggregator eventAggregator)
        {
            InitializeComponent();
            _ieventAggregator = eventAggregator;
            var e = _ieventAggregator.GetEvent<Event_CloseLoginWindow>();
            e.Subscribe(() =>
            {
                this.DialogResult = true;
            });
        }
    }
}
